const Koa = require('koa');
const config = require('./config')
const router = require('./router')
const bodyParser = require('koa-bodyparser')
const static = require('koa-static')

const app = new Koa();

app.use(bodyParser());

// app.use(static('./upload'))

app.use(router.routes(),router.allowedMethods())

app.listen(config.port,function(){
  console.log('run...')
})